package com.dpp.vo;

import com.dpp.entity.OrderCount;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;;

import java.time.LocalDateTime;
import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class OrderVO {

    //主键
    private Long id;

    //订单号
    private Long number;

    //订单类型
    private Integer productId;

    private String orderType;

    //订单状态
    private Integer orderStatus;

    //实收金额
    private Double amount;

//    @JsonFormat(pattern = "MM-dd HH:mm")
    private LocalDateTime createTime;

    //电话号
    private String phone;

    //取件地址
    private String takeAddress;
    //送达地址
    private String address;

    //预计送达时间
    private String expectTime;

    //取件信息
    private String packageInfo;

    //图片数组
    private List<String> images;

    //已送达图片数组
    private String imageOver;

    //备注
    private String remark;

    //帮手电话
    private String helperPhone;

    //帮手地址
    private String helperAddress;

    //接单时间
//    @JsonFormat(pattern = "MM-dd HH:mm")
    private LocalDateTime takeoutTime;

    //取件时间
//    @JsonFormat(pattern = "MM-dd HH:mm")
    private LocalDateTime takeTime;

    //送达时间
//    @JsonFormat(pattern = "MM-dd HH:mm")
    private LocalDateTime deliveryTime;

//    @JsonFormat(pattern = "MM-dd HH:mm")
    private LocalDateTime finishTime;
    private Integer count;
    private List<OrderCount> orderCounts;
    private String errorMsg;

}
